<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Spring 4 MVC - JSP - 表单标签</title>
</head>
<body>
	<form:form action="/tag/post" method="post" modelAttribute="user">  
		id:<form:input path="id" />
		<hr />
		name:<form:input path="name" />
		<hr />
		passwd: <form:password path="passwd" showPassword="true" />

		<hr />
		隐藏表单:
		<form:hidden path="hiddenId" />

		form:select生成
		<form:select path="selectId" items="${selects}" />
		<hr />
		
		form:radiobuttons生成 - 对象列表:id-name
		<form:radiobuttons path="radioId" items="${users}" itemLabel="name"
			itemValue="id" />

		<hr />
		<form:button>提交</form:button>
	</form:form>
</body>
</html>